package com.freight.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.freight.core.base.FreightBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author hjl
 */
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "order_track")
@TableName("order_track")
@ApiModel(value = "订单行车路径")
public class OrderTrack extends FreightBaseEntity {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "订单号")
    private Long orderId;
    @ApiModelProperty(value = "车牌号")
    private String carNum;
    @ApiModelProperty(value = "数据获取时间")
    private Date getTime;
    @ApiModelProperty(value = "纬度")
    private Double lat;

    @ApiModelProperty(value = "经度")
    private Double lon;
    @ApiModelProperty(value = "原纬度")
    private Double latF;
    @ApiModelProperty(value = "原经度")
    private Double lonF;
    @ApiModelProperty(value = "GPS 时间")
    private String gtm;
    @ApiModelProperty(value = "GPS 速度")
    private String spd;
    @ApiModelProperty(value = "GPS 里程")
    private String mlg;
    @ApiModelProperty(value = "GPS 海拔")
    private String hgt;
    @ApiModelProperty(value = "GPS 正北方向夹角")
    private String agl;

}